package com.yekong.house.biz.service;

import com.yekong.house.common.model.User;

import java.util.List;

public interface UserService {
    List<User> getUsers();

    /**
     * 1.插入数据库，非激活；密码用md5加密；保存头像到本地
     * 2. 生成key，绑定 email
     * 3. 发送邮件给用户
     * @param account
     * @return
     */
    Boolean addAccount(User account);
    //激活用户
    public boolean enable(String key);

    //验证用户
    User auth(String username,String password);

    void updateUser(User updateUser, String email);

    List<User> getUserByQuery(User user);

    User reset(String key, String passwd);

    String getResetEmail(String key);

    void resetNotify(String username);

    User getUserById(Long userId);
}
